package com.java.star.mall.front.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户修改参数类
 */
@Data
public class UserUpdateParam implements Serializable {

    private static final long serialVersionUID = -2688297046517218362L;

    @ApiModelProperty(value = "头像图片路径")
    @NotNull(message = "头像图片路径不能为空")
    private String avatarUrl;

    @ApiModelProperty(value = "昵称")
    @NotNull(message = "昵称不能为空")
    @Size(min = 1, max = 10, message = "昵称不少于1个字，最多10个")
    private String nickName;
}
